const path = require('path')
const resolve = dir => path.resolve(__dirname, dir)
module.exports = {
  publicPath: './', // 输出路径
  // outputDir: 'dist/dist/' // 输出文件地址
  chainWebpack: config => {
    config.module
      .rule('md')
      .test(/\.md$/i)
      .use('vue-loader')
      .loader('vue-loader')
      .end()
      .use('markdown-loader')
      .loader('vue-markdown-loader/lib/markdown-compiler')
      .options({
        raw: true
      })
  }
}